package cn.sc.allinpay.allfavour.business.common.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import cn.sc.allinpay.allfavour.app.Constant;
import cn.sc.allinpay.allfavour.business.common.utils.SpUtils;

/**
 * description：广播监听
 * author：pany
 * on 2018/10/17 11:29
 */
public class AllinpayReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals(Intent.ACTION_SHUTDOWN)) {//关机广播
            SpUtils.put(context, Constant.SPNAME, Constant.SpKey.CashierData, "");
        }
    }
}
